package homeWork0601;

public class JiaoChe extends Car {

    private String pinPai;

    public JiaoChe( String pinPai, int zuJin) {
        super("轿车", zuJin);
        this.pinPai = pinPai;
    }

    public JiaoChe() {
    }

    @Override
    protected String xinXi() {
        String msg = "";
        msg+="类型"+getLeiXin()+"\r\n";
        msg+="品牌"+pinPai+"\r\n";
        msg+="天数"+getTianShu()+"\r\n";
        msg+="租金"+getZuJin()+"\r\n";
        return msg;
    }
}
